﻿#ifndef ROLEFORM_H
#define ROLEFORM_H

#include <QWidget>
#include "dbutil.h"
#include <QSqlQueryModel>
#include <QDebug>
#include "roledialog.h"
#include <QMessageBox>

namespace Ui {
class RoleForm;
}

class RoleForm : public QWidget
{
    Q_OBJECT

public:
    explicit RoleForm(QWidget *parent = nullptr);
    ~RoleForm();

public slots:
    void init();

private slots:
    void on_add();
    void on_edit();
    void on_delete();

private:
    Ui::RoleForm *ui;
    QSqlQueryModel *m_pSqlQueryModel;
};

#endif // ROLEFORM_H
